﻿<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title>forEach用法</title>
    <script src="js/jquery-3.5.1.js"></script>
    <script src="common.js"></script>
    <script type="text/javascript">
        var temp = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
        var temp1 = [{ 'ID': '1', 'Name': '王晓华' }, { 'ID': '2', 'Name': '王晓华2' }, { 'ID': '3', 'Name': '王晓华3' }]
        var t1 = '';
        temp.forEach(function (othis,a, b, c) {
            t1 = '';
        });
        temp1.forEach(function (othis,a, b, c) {
            t1 = '';
        });

        temp.forEach((othis,a, b, c) => {
            t1 = '';
        });
        temp1.forEach((othis,a, b, c) => {
            t1 = '';
        });
    </script>
</head>
<body>

</body>
</html>